PolicyToPath.fromJson constructor

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

Implementation

factory PolicyToPath.fromJson(Map<String, dynamic> json) {
  return PolicyToPath(
    path: json['Path'] as String?,
    policies: (json['Policies'] as List?)
        ?.whereNotNull()
        .map((e) => PolicyAttachment.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}