AssociationSession.fromJson constructor

AssociationSession.fromJson(
  1. Map json_
)

Implementation

AssociationSession.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        productCodes: json_.containsKey('productCodes')
            ? (json_['productCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        redirectUrl: json_.containsKey('redirectUrl')
            ? json_['redirectUrl'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        userLocale: json_.containsKey('userLocale')
            ? json_['userLocale'] as core.String
            : null,
        websiteLocale: json_.containsKey('websiteLocale')
            ? json_['websiteLocale'] as core.String
            : null,
        websiteUrl: json_.containsKey('websiteUrl')
            ? json_['websiteUrl'] as core.String
            : null,
      );