toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "type": type,
      "instruction": instruction,
      "bearing_after": bearingAfter,
      "bearing_before": bearingBefore,
      "location": List<dynamic>.from(location.map((x) => x)),
      "modifier": modifier,
    };