Subscription.fromJson constructor

Subscription.fromJson(
  1. Map json_
)

Implementation

Subscription.fromJson(core.Map json_)
    : this(
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        dataExchange: json_.containsKey('dataExchange')
            ? json_['dataExchange'] as core.String
            : null,
        lastModifyTime: json_.containsKey('lastModifyTime')
            ? json_['lastModifyTime'] as core.String
            : null,
        linkedDatasetMap: json_.containsKey('linkedDatasetMap')
            ? (json_['linkedDatasetMap']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  LinkedResource.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        listing: json_.containsKey('listing')
            ? json_['listing'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        organizationDisplayName: json_.containsKey('organizationDisplayName')
            ? json_['organizationDisplayName'] as core.String
            : null,
        organizationId: json_.containsKey('organizationId')
            ? json_['organizationId'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        subscriberContact: json_.containsKey('subscriberContact')
            ? json_['subscriberContact'] as core.String
            : null,
      );