toCompatibleFormat method

  1. @override
String toCompatibleFormat()
override

Implementation

@override
String toCompatibleFormat() {
  Map<dynamic, dynamic> map = <dynamic, dynamic>{
    "id": id,
    "prelim": preliminary.toCompatibleFormat(),
    "auto": auto.toCompatibleFormat(),
    "tele": teleop.toCompatibleFormat(),
    "end": endgame.toCompatibleFormat(),
    "misc": misc.toCompatibleFormat()
  };
  if (comments.isNotEmpty) {
    map["cmt"] = comments.toCompatibleFormat();
  }
  return jsonEncode(map);
}