toMap method

  1. @override
Map<String, dynamic> toMap()
override

toMap method to get the OsrmLane as a json map

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'valid': valid,
    'indications': indications?.map((e) => e.toMap()).toList(),
  };
}