toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (affiliationState != null) 'affiliationState': affiliationState!,
  if (annotatedLocation != null) 'annotatedLocation': annotatedLocation!,
  if (annotatedUser != null) 'annotatedUser': annotatedUser!,
  if (attestationCredential != null)
    'attestationCredential': attestationCredential!,
  if (browserChannel != null) 'browserChannel': browserChannel!,
  if (browserVersion != null) 'browserVersion': browserVersion!,
  if (deviceInfo != null) 'deviceInfo': deviceInfo!,
  if (displayName != null) 'displayName': displayName!,
  if (etag != null) 'etag': etag!,
  if (extensionCount != null) 'extensionCount': extensionCount!,
  if (firstEnrollmentTime != null)
    'firstEnrollmentTime': firstEnrollmentTime!,
  if (identityProvider != null) 'identityProvider': identityProvider!,
  if (lastActivityTime != null) 'lastActivityTime': lastActivityTime!,
  if (lastPolicyFetchTime != null)
    'lastPolicyFetchTime': lastPolicyFetchTime!,
  if (lastPolicySyncTime != null) 'lastPolicySyncTime': lastPolicySyncTime!,
  if (lastStatusReportTime != null)
    'lastStatusReportTime': lastStatusReportTime!,
  if (name != null) 'name': name!,
  if (osPlatformType != null) 'osPlatformType': osPlatformType!,
  if (osPlatformVersion != null) 'osPlatformVersion': osPlatformVersion!,
  if (osVersion != null) 'osVersion': osVersion!,
  if (policyCount != null) 'policyCount': policyCount!,
  if (profileId != null) 'profileId': profileId!,
  if (profilePermanentId != null) 'profilePermanentId': profilePermanentId!,
  if (reportingData != null) 'reportingData': reportingData!,
  if (userEmail != null) 'userEmail': userEmail!,
  if (userId != null) 'userId': userId!,
};