toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id == null ? null : id,
"merchant_id": merchantId == null ? null : merchantId,
"uuid": uuid == null ? null : uuid,
"name": name == null ? null : name,
"url": url == null ? null : url,
"description": description,
"size": size == null ? null : size,
"type": type == null ? null : type,
"is_image": isImage == null ? null : isImage,
"status": status == null ? null : status,
"deleted_at": deletedAt,
"created_at": createdAt == null ? null : createdAt!.toIso8601String(),
"updated_at": updatedAt == null ? null : updatedAt!.toIso8601String(),
"pivot": pivot == null ? null : pivot!.toJson(),
};