toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var fields = this.fields;
  var id = this.id;
  var key = this.key;
  var self = this.self;

  final json = <String, Object?>{};
  if (fields != null) {
    json[r'fields'] = fields.toJson();
  }
  if (id != null) {
    json[r'id'] = id;
  }
  if (key != null) {
    json[r'key'] = key;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  return json;
}