FlowSchemaSpec.fromJson constructor

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

Creates a FlowSchemaSpec from JSON data.

Implementation

FlowSchemaSpec.fromJson(Map<String, dynamic> json)
    : this(
        distinguisherMethod: json['distinguisherMethod'] != null
            ? FlowDistinguisherMethod.fromJson(json['distinguisherMethod'])
            : null,
        matchingPrecedence: json['matchingPrecedence'],
        priorityLevelConfiguration:
            PriorityLevelConfigurationReference.fromJson(
                json['priorityLevelConfiguration']),
        rules: json['rules'] != null
            ? PolicyRulesWithSubjects.listFromJson(
                (json['rules'] as Iterable).cast<Map<String, dynamic>>())
            : null,
      );