toMap method

Map<String, dynamic> toMap()

Convert the class to a map instance

Implementation

Map<String, dynamic> toMap() {
  return {
    'asset_id': assetId,
    'public_id': publicId,
    'created_at': createdAt.toString(),
    'url': url,
    'secure_url': secureUrl,
    'original_filename': originalFilename,
    'tags': tags,
    'context': context,
    'data': data,
  };
}