toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'op': op.toJson(),
      if (entity != null) 'entity': entity!.toJson(),
      if (entities != null && op == CedarPolicyOp.in$)
        'entities': entities!.map((e) => e.toJson()).toList(),
    };