NamespaceSummary.fromJson constructor

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

Implementation

factory NamespaceSummary.fromJson(Map<String, dynamic> json) {
  return NamespaceSummary(
    arn: json['Arn'] as String?,
    createDate: timeStampFromJson(json['CreateDate']),
    description: json['Description'] as String?,
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    properties: json['Properties'] != null
        ? NamespaceProperties.fromJson(
            json['Properties'] as Map<String, dynamic>)
        : null,
    serviceCount: json['ServiceCount'] as int?,
    type: (json['Type'] as String?)?.toNamespaceType(),
  );
}