toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"name": name,
"status": status,
"connection_response": connectionResponse,
"channel_updated_at": channelUpdatedAt == null
? null
: channelUpdatedAt!.toIso8601String(),
"status_code": statusCode,
"settings": settings == null ? null : settings!.toJson(),
"auth": auth == null ? null : List<dynamic>.from(auth!.map((x) => x)),
"connection": connection,
"orders_sync": ordersSync,
"inventory_sync": inventorySync,
"catalog_sync": catalogSync,
"orders_synced_on": ordersSyncedOn,
"inventory_synced_on": inventorySyncedOn,
"base_channel_code": baseChannelCode,
"base_channel": baseChannel == null ? null : baseChannel!.toJson(),
"catalog_synced_on": catalogSyncedOn,
"order_status_mapper": orderStatusMapper,
"payment_status_mapper": paymentStatusMapper,
"brand_name": brandName,
"brand_logo": brandLogo,
"allow_mark_as_paid": allowMarkAsPaid,
"warehouse_locations": warehouseLocations == null
? null
: List<dynamic>.from(warehouseLocations!.map((x) => x)),
"skip_unpaid_prepaid": skipUnpaidPrepaid,
"vendor_id": vendorId,
"b2b_channels": b2BChannels == null
? null
: List<dynamic>.from(b2BChannels!.map((x) => x)),
};