TicketRestrictions.fromJson constructor

TicketRestrictions.fromJson(
  1. Map json_
)

Implementation

TicketRestrictions.fromJson(core.Map json_)
    : this(
        otherRestrictions: json_.containsKey('otherRestrictions')
            ? LocalizedString.fromJson(json_['otherRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
        routeRestrictions: json_.containsKey('routeRestrictions')
            ? LocalizedString.fromJson(json_['routeRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
        routeRestrictionsDetails:
            json_.containsKey('routeRestrictionsDetails')
                ? LocalizedString.fromJson(json_['routeRestrictionsDetails']
                    as core.Map<core.String, core.dynamic>)
                : null,
        timeRestrictions: json_.containsKey('timeRestrictions')
            ? LocalizedString.fromJson(json_['timeRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );