Namespace.fromJson constructor

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

Implementation

factory Namespace.fromJson(Map<String, dynamic> json) {
  return Namespace(
    arn: json['Arn'] as String?,
    createDate: timeStampFromJson(json['CreateDate']),
    creatorRequestId: json['CreatorRequestId'] as String?,
    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(),
  );
}