fromMap method

  1. @override
dynamic fromMap (
  1. Map map
)

map -> dynamic

Implementation

@override
fromMap(Map map) {
  if (map == null) {
    return null;
  }
  return BMFRouteLine(
      distance: map['distance'],
      duration: BMFTime.fromMap(map['duration']),
      starting: BMFRouteNode.fromMap(map['starting']),
      terminal: BMFRouteNode.fromMap(map['terminal']),
      title: map['title']);
}