toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'name'] = this.name;
  json[r'slug'] = this.slug;
  if (this.imageUrl != null) {
    json[r'image_url'] = this.imageUrl;
  } else {
    json[r'image_url'] = null;
  }
  json[r'has_image'] = this.hasImage;
  return json;
}