toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var version = this.version;
  var body = this.body;
  var resolved = this.resolved;

  final json = <String, Object?>{};
  if (version != null) {
    json[r'version'] = version.toJson();
  }
  if (body != null) {
    json[r'body'] = body;
  }
  json[r'resolved'] = resolved;
  return json;
}