toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (deviceEnrollmentId != null)
        'deviceEnrollmentId': deviceEnrollmentId!,
      if (devicePermanentId != null) 'devicePermanentId': devicePermanentId!,
      if (signedPublicKeyAndChallenge != null)
        'signedPublicKeyAndChallenge': signedPublicKeyAndChallenge!,
      if (verificationOutput != null)
        'verificationOutput': verificationOutput!,
    };