toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'id': id,
    'boutiqueId': boutiqueId,
    'name': name,
    'mail': mail,
    'addressFull': addressFull.toMap(),
    'phone': phone.toMap(),
    'photoSource': logoSource.toString(),
    'photoPath': logoPath,
    'languageCode': languageCode,
    'shopKeeperName': shopKeeperName,
    'shopKeeperTel': shopKeeperTel,
    'shopKeeperMail': shopKeeperMail,
    'creationDate': creationDate.toIso8601String(),
    'updateDate': updateDate?.toIso8601String(),
    'status': status,
    'statusUpdateDate': statusUpdateDate?.toIso8601String(),
    'promo': promo,
    'promoStart': promoStart == null ? '' : promoStart!.toIso8601String(),
    'promoEnd': promoEnd == null ? '' : promoEnd!.toIso8601String(),
  };
}