toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  var json = <String, dynamic>{};

  if (info != null) {
    json['info'] = info;
  }

  if (additionalInfo != null) {
    json['additionalInfo'] = additionalInfo;
  }

  if (image != null) {
    json['image'] = image?.base64String;
  }

  return json;
}