LinkFiveResponseData.fromJson constructor

LinkFiveResponseData.fromJson(
  1. Map<Object?, Object?> json
)

Implementation

LinkFiveResponseData.fromJson(Map<Object?, Object?> json)
    : platform = json["platform"] as String,
      attributes = json["attributes"] as String?,
      subscriptionList =
          (json["subscriptionList"] as List).map((e) => LinkFiveResponseDataSubscription.fromJson(e)).toList(),
      oneTimePurchaseList = (json["oneTimePurchaseList"] as List?)
              ?.map((e) => LinkFiveResponseDataOneTimePurchase.fromJson(e))
              .toList() ??
          [];