BMFMassTransitRoutePlanOption.fromMap constructor

BMFMassTransitRoutePlanOption.fromMap(
  1. Map map
)

map => BMFMassTransitRoutePlanOption

Implementation

BMFMassTransitRoutePlanOption.fromMap(Map map) : super.fromMap(map) {
  pageCapacity = map['pageCapacity'] as int;
  pageIndex = map['pageIndex'] as int;
  incityPolicy =
      BMFMassTransitIncityPolicy.values[map['incityPolicy'] as int];
  intercityPolicy =
      BMFMassTransitIntercityPolicy.values[map['intercityPolicy'] as int];
  intercityTransPolicy = BMFMassTransitIntercityTransPolicy
      .values[map['intercityTransPolicy'] as int];
}