Allowed.fromJson constructor

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

Implementation

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