fromCompatibleFormat static method

TeleOpInfo fromCompatibleFormat(
  1. String csv
)

Implementation

static TeleOpInfo fromCompatibleFormat(String csv) {
  final Map<String, dynamic> data =
      jsonDecode(csv) as Map<String, dynamic>;
  return TeleOpInfo(
      underStage: data["undSpker"],
      lobs: data["lob"],
      scoredSpeaker: data["spker"],
      missedSpeaker: data["missSpker"],
      scoredAmp: data["amp"],
      missedAmp: data["missAmp"]);
}