ParameterMetadata.fromJson constructor

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

Implementation

factory ParameterMetadata.fromJson(Map<String, dynamic> json) {
  return ParameterMetadata(
    allowedPattern: json['AllowedPattern'] as String?,
    dataType: json['DataType'] as String?,
    description: json['Description'] as String?,
    keyId: json['KeyId'] as String?,
    lastModifiedDate: timeStampFromJson(json['LastModifiedDate']),
    lastModifiedUser: json['LastModifiedUser'] as String?,
    name: json['Name'] as String?,
    policies: (json['Policies'] as List?)
        ?.whereNotNull()
        .map((e) => ParameterInlinePolicy.fromJson(e as Map<String, dynamic>))
        .toList(),
    tier: (json['Tier'] as String?)?.toParameterTier(),
    type: (json['Type'] as String?)?.toParameterType(),
    version: json['Version'] as int?,
  );
}