VerificationResponse.fromJson constructor

VerificationResponse.fromJson(
  1. Map<String, dynamic> json
)

Creates a VerificationResponse from a JSON map.

Implementation

factory VerificationResponse.fromJson(Map<String, dynamic> json) => VerificationResponse(
      result: json['result'] as bool? ?? false,
      errorMessage: json['errorMessage'] as String? ?? '',
      verificationID: json['verificationID'] as String? ?? '',
    );