toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (challengeResponse != null) 'challengeResponse': challengeResponse!,
      if (expectedIdentity != null) 'expectedIdentity': expectedIdentity!,
    };