LoyaltyClassListResponse.fromJson constructor

LoyaltyClassListResponse.fromJson(
  1. Map json_
)

Implementation

LoyaltyClassListResponse.fromJson(core.Map json_)
    : this(
        pagination: json_.containsKey('pagination')
            ? Pagination.fromJson(
                json_['pagination'] as core.Map<core.String, core.dynamic>)
            : null,
        resources: json_.containsKey('resources')
            ? (json_['resources'] as core.List)
                .map((value) => LoyaltyClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );