ParameterHistory.fromJson constructor

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

Implementation

factory ParameterHistory.fromJson(Map<String, dynamic> json) {
  return ParameterHistory(
    allowedPattern: json['AllowedPattern'] as String?,
    dataType: json['DataType'] as String?,
    description: json['Description'] as String?,
    keyId: json['KeyId'] as String?,
    labels: (json['Labels'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    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(),
    value: json['Value'] as String?,
    version: json['Version'] as int?,
  );
}