Origination.fromJson constructor

Origination.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Origination.fromJson(Map<String, dynamic> json) {
  return Origination(
    disabled: json['Disabled'] as bool?,
    routes: (json['Routes'] as List?)
        ?.whereNotNull()
        .map((e) => OriginationRoute.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}