toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    'type': type,
    'organizationId': organizationId,
    'organizationName': organizationName,
    'name': name,
    'email': email,
    'mobileNo': mobileNo,
    'uid': uid,
    'notificationToken': notificationToken,
    'delete': delete,
    'createdOn': createdOn?.toIso8601String(),
    'createdBy': createdBy,
    'associations': jsonEncode(associations ?? {}),
    'bulletin': jsonEncode(bulletin ?? {}),
    'age': age,
    'autoModifiedTimeStamp': autoModifiedTimeStamp?.toIso8601String(),
    'deviceId': deviceId,
    'deviceName': deviceName,
    'doctorId': doctorId,
    'amcLog': amcLog,
    'amcPayment': amcPayment,
    'amcStartDate': amcStartDate,
    'amcValidity': amcValidity,
    'appVersion': appVersion,
    'deviceCode': deviceCode,
    'isActive': isActive,
    'lastSeenTime': lastSeenTime,
    'modifiedAt': modifiedAt?.toIso8601String(),
    'modifiedTimeStamp': modifiedTimeStamp,
    'noOfMother': noOfMother,
    'noOfTests': noOfTests,
    'sync': sync,
    'testAccount': testAccount,
    'weight': weight,
    'patientId': patientId,
    'platformId': platformId,
    'platformRegAt': platformRegAt,
    'babyBeatAssociation': babyBeatAssociation,
    'documentId': documentId,
    'organizationNameBabyBeat': organizationNameBabyBeat,
  };
}