toJSONSimple method

Map<String, dynamic> toJSONSimple()

Implementation

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