toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'name': name,
  'summary': summary,
  'plane': plane.toJson(),
  'mode': mode.toJson(),
  'sideEffect': sideEffect.toJson(),
  'factSources': factSources
      .map((item) => item.toJson())
      .toList(growable: false),
  'gates': gates.map((item) => item).toList(growable: false),
  'parameters': parameters
      .map((item) => item.toJson())
      .toList(growable: false),
};