toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var data = <String, dynamic>{};
  if (size != null) {
    data['size'] = size.toJson();
  }
  if (license != null) {
    data['license'] = license.toJson();
  }
  if (freshness != null) {
    data['freshness'] = freshness.toJson();
  }
  if (color != null) {
    data['color'] = color.toJson();
  }
  if (imagetype != null) {
    data['imagetype'] = imagetype.toJson();
  }
  if (source != null) {
    data['source'] = source.toJson();
  }
  return data;
}