toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (url != null) {
    _json[r'url'] = url;
  }
  if (secureUrl != null) {
    _json[r'secure_url'] = secureUrl;
  }
  if (type != null) {
    _json[r'type'] = type;
  }
  return _json;
}