toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  return _json;
}