MastercardAuthResponse.fromJson constructor
MastercardAuthResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MastercardAuthResponse.fromJson(Map<String, dynamic> json) {
return MastercardAuthResponse(
authenticationId: json['authentication']?['id']?.toString(),
status: json['status']?.toString() ?? 'UNKNOWN',
redirectUrl: json['authentication']?['redirectUrl']?.toString(),
htmlBodyContent: json['authentication']?['redirectHtml']?.toString(),
authentication: json['authentication'] as Map<String, dynamic>?,
response: json['response'] as Map<String, dynamic>?,
gatewayRecommendation: json['response']?['gatewayRecommendation']?.toString(),
);
}