FailureDetails.fromJson constructor

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

Implementation

factory FailureDetails.fromJson(Map<String, dynamic> json) {
  return FailureDetails(
    details: (json['Details'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(
            k, (e as List).whereNotNull().map((e) => e as String).toList())),
    failureStage: json['FailureStage'] as String?,
    failureType: json['FailureType'] as String?,
  );
}