Resources.fromJson constructor

Resources.fromJson(
  1. Map json_
)

Implementation

Resources.fromJson(core.Map json_)
    : this(
        eventTicketClasses: json_.containsKey('eventTicketClasses')
            ? (json_['eventTicketClasses'] as core.List)
                .map((value) => EventTicketClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        eventTicketObjects: json_.containsKey('eventTicketObjects')
            ? (json_['eventTicketObjects'] as core.List)
                .map((value) => EventTicketObject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        flightClasses: json_.containsKey('flightClasses')
            ? (json_['flightClasses'] as core.List)
                .map((value) => FlightClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        flightObjects: json_.containsKey('flightObjects')
            ? (json_['flightObjects'] as core.List)
                .map((value) => FlightObject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        giftCardClasses: json_.containsKey('giftCardClasses')
            ? (json_['giftCardClasses'] as core.List)
                .map((value) => GiftCardClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        giftCardObjects: json_.containsKey('giftCardObjects')
            ? (json_['giftCardObjects'] as core.List)
                .map((value) => GiftCardObject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        loyaltyClasses: json_.containsKey('loyaltyClasses')
            ? (json_['loyaltyClasses'] as core.List)
                .map((value) => LoyaltyClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        loyaltyObjects: json_.containsKey('loyaltyObjects')
            ? (json_['loyaltyObjects'] as core.List)
                .map((value) => LoyaltyObject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        offerClasses: json_.containsKey('offerClasses')
            ? (json_['offerClasses'] as core.List)
                .map((value) => OfferClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        offerObjects: json_.containsKey('offerObjects')
            ? (json_['offerObjects'] as core.List)
                .map((value) => OfferObject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        transitClasses: json_.containsKey('transitClasses')
            ? (json_['transitClasses'] as core.List)
                .map((value) => TransitClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        transitObjects: json_.containsKey('transitObjects')
            ? (json_['transitObjects'] as core.List)
                .map((value) => TransitObject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );