Membership.fromJson constructor

Membership.fromJson(
  1. Map json_
)

Implementation

Membership.fromJson(core.Map json_)
    : this(
        authority: json_.containsKey('authority')
            ? Authority.fromJson(
                json_['authority'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        endpoint: json_.containsKey('endpoint')
            ? MembershipEndpoint.fromJson(
                json_['endpoint'] as core.Map<core.String, core.dynamic>)
            : null,
        externalId: json_.containsKey('externalId')
            ? json_['externalId'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lastConnectionTime: json_.containsKey('lastConnectionTime')
            ? json_['lastConnectionTime'] as core.String
            : null,
        monitoringConfig: json_.containsKey('monitoringConfig')
            ? MonitoringConfig.fromJson(json_['monitoringConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        state: json_.containsKey('state')
            ? MembershipState.fromJson(
                json_['state'] as core.Map<core.String, core.dynamic>)
            : null,
        uniqueId: json_.containsKey('uniqueId')
            ? json_['uniqueId'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );