PolicyParameter.fromJson constructor

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

Implementation

factory PolicyParameter.fromJson(Map<String, dynamic> json) {
  return PolicyParameter(
    key: json['Key'] as String?,
    mapEntries: (json['MapEntries'] as List?)
        ?.whereNotNull()
        .map((e) => ParameterMapEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    values: (json['Values'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}