toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "password": password,
      "conditionAgreement": conditionAgreement,
      "mobileType": mobileType,
      "isSubscribed": isSubscribed,
      "deviceID": deviceId,
      "id": id,
      "firstName": firstName,
      "lastName": lastName,
      "mobile": mobile,
      "email": email,
      "isActive": isActive,
      "zoneID": zoneId,
      "gender": gender,
    };