DefaultAction.fromJson constructor

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

Implementation

factory DefaultAction.fromJson(Map<String, dynamic> json) {
  return DefaultAction(
    allow: json['Allow'] != null
        ? AllowAction.fromJson(json['Allow'] as Map<String, dynamic>)
        : null,
    block: json['Block'] != null
        ? BlockAction.fromJson(json['Block'] as Map<String, dynamic>)
        : null,
  );
}