Root.fromJson constructor

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

Implementation

factory Root.fromJson(Map<String, dynamic> json) {
  return Root(
    arn: json['Arn'] as String?,
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    policyTypes: (json['PolicyTypes'] as List?)
        ?.whereNotNull()
        .map((e) => PolicyTypeSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}