Map<String, dynamic> toMap() => { "subMerchant": subMerchant == null ? null : List<SubMerchant>.from(subMerchant?.map((x) => x.toMap()) ?? []), };