Rule.fromJson constructor

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

Implementation

factory Rule.fromJson(Map<String, dynamic> json) {
  return Rule(
    parameters: (json['Parameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    type: (json['Type'] as String?)?.toRuleType(),
  );
}