fromJsonString static method
- String jsonString
Decode a JSON string to create a Failure object.
Implementation
static Failure fromJsonString(String jsonString) {
final Map<String, dynamic> failure = json.decode(jsonString) as Map<String, dynamic>;
return Failure(failure['methodName'] as String, failure['details'] as String?);
}