Failure.fromJson constructor

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

Implementation

factory Failure.fromJson(Map<String, dynamic> json) {
  return Failure(
    arn: json['arn'] as String?,
    detail: json['detail'] as String?,
    reason: json['reason'] as String?,
  );
}