LineModel.fromMap constructor

LineModel.fromMap(
  1. Map<String, dynamic> map
)

Returns a LineModel from the given map.

Implementation

factory LineModel.fromMap(Map<String, dynamic> map) {
  return LineModel(
    id: map['id'],
    coordinates: map['coordinates'],
    altitudeMode: map['altitudeMode'],
    drawOrder: map['drawOrder'],
  );
}