toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.count != null) {
    json[r'count'] = this.count;
  } else {
    json[r'count'] = null;
  }
  return json;
}