FundsVerificationResponse.fromJson constructor

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

Implementation

factory FundsVerificationResponse.fromJson(Map<String, dynamic> json) {
  return FundsVerificationResponse(
    status: Status.values.firstWhere(
          (e) => e.toString().split('.').last == json['status'],
      orElse: () => Status.failed,
    ),
  );
}