toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON()=>{
  'name': name,
  'fullName': fullName,
  'phoneNumber': phoneNumber,
  'countryCode': countryCode,
  'description': description,
  'ownerId': ownerId,
  'imgUrl': imgUrl,
  'profileId': profileId,
  'type': type.name,
  'address': address?.toJSON() ?? Address().toJSON(),
  'position': jsonEncode(position),
  'isActive': isActive,
  'externalUrl': externalUrl,
  'galleryImgUrls': galleryImgUrls
};