NamespaceInfoV2.fromJson constructor

NamespaceInfoV2.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory NamespaceInfoV2.fromJson(Map<String, dynamic> json) {
  return NamespaceInfoV2(
    arn: json['Arn'] as String?,
    capacityRegion: json['CapacityRegion'] as String?,
    creationStatus: (json['CreationStatus'] as String?)?.toNamespaceStatus(),
    identityStore: (json['IdentityStore'] as String?)?.toIdentityStore(),
    name: json['Name'] as String?,
    namespaceError: json['NamespaceError'] != null
        ? NamespaceError.fromJson(
            json['NamespaceError'] as Map<String, dynamic>)
        : null,
  );
}