toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (authenticationChannel != null) {
    json['authentication_channel'] = authenticationChannel!.value;
  }
  if (possessionFactor != null) {
    json['possession_factor'] = possessionFactor!.toJson();
  }
  if (knowledgeFactor != null) {
    json['knowledge_factor'] = knowledgeFactor!.toJson();
  }
  if (inherenceFactor != null) {
    json['inherence_factor'] = inherenceFactor!.toJson();
  }
  if (challengeOutcome != null) {
    json['challenge_outcome'] = challengeOutcome!.value;
  }
  if (authenticationFlow != null) {
    json['authentication_flow'] = authenticationFlow!.value;
  }
  if (authenticationValue != null) {
    json['authentication_value'] = authenticationValue;
  }
  if (challengeDateTime != null) {
    json['challenge_date_time'] = challengeDateTime;
  }
  return json;
}