fromCompatibleFormat static method

AutoInfo fromCompatibleFormat(
  1. String rawData
)

Implementation

static AutoInfo fromCompatibleFormat(String rawData) {
  final Map<String, dynamic> data =
      jsonDecode(rawData) as Map<String, dynamic>;
  return AutoInfo(
      notePreloaded: data["preload"],
      taxi: data["taxi"],
      scoredSpeaker: data["spker"],
      missedSpeaker: data["missSpker"],
      scoredAmp: data["amp"],
      missedAmp: data["missAmp"]);
}