toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var encodedName = this.encodedName;
  var name = this.name;
  var property = this.property;

  final json = <String, Object?>{};
  if (encodedName != null) {
    json[r'encodedName'] = encodedName;
  }
  json[r'name'] = name;
  json[r'property'] = property.map((i) => i.toJson()).toList();
  return json;
}