Membership.fromJson constructor

Membership.fromJson(
  1. Map json_
)

Implementation

Membership.fromJson(core.Map json_)
    : this(
        primaryCluster: json_.containsKey('primaryCluster')
            ? RemoteCluster.fromJson(json_['primaryCluster']
                as core.Map<core.String, core.dynamic>)
            : null,
        secondaryClusters: (json_['secondaryClusters'] as core.List?)
            ?.map((value) => RemoteCluster.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );