ReviewPolicy.fromJson constructor

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

Implementation

factory ReviewPolicy.fromJson(Map<String, dynamic> json) {
  return ReviewPolicy(
    policyName: json['PolicyName'] as String,
    parameters: (json['Parameters'] as List?)
        ?.whereNotNull()
        .map((e) => PolicyParameter.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}