toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "uuid": uuid,
      "createdTS": createdTs,
      "updatedTS": updatedTs,
      "createdBy": createdBy,
      "updatedBy": updatedBy,
      "version": version,
      "id": id,
      "extProfileImgUrl": extProfileImgUrl,
      "media": media ?? media!.toJson(),
      "firstName": firstName,
      "lastName": lastName,
      "gender": gender,
      "yob": yob,
      "authProviders": authProviders,
      "homeLocation": homeLocation ?? homeLocation!.toJson(),
      "contactPoints": contactPoints ??
          List<dynamic>.from(contactPoints!.map((final x) => x.toJson())),
      "premiumUntilTS": premiumUntilTs,
      "type": type,
      "metadata": metadata ?? metadata!.toJson(),
      "registeredTS": registeredTs,
      "devices": devices ??
          List<dynamic>.from(devices!.map((final x) => x.toJson())),
      "userCommunities": userCommunities ??
          List<dynamic>.from(userCommunities!.map((final x) => x.toJson())),
      "userCommunitiesNegative": userCommunitiesNegative ??
          List<dynamic>.from(
              userCommunitiesNegative!.map((final x) => x.toJson())),
      "policyAcceptances": policyAcceptances ??
          List<dynamic>.from(policyAcceptances!.map((final x) => x.toJson())),
      "active": active,
    };