toMap method

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

toMap method to get the OsrmBannerInstructions as a json map

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'distanceAlongGeometry': distanceAlongGeometry,
    'primary': primary,
    'secondary': secondary,
    'sub': sub,
    'imageBaseUrl': imageBaseUrl,
    'type': type,
    'modifier': modifier,
    'degrees': degrees,
  };
}