Success<T> constructor

Success<T>(
  1. String? body
)

Implementation

Success(String? body) {
  if (body == null) response = null;
  try {
    response = jsonDecode(body!);
  } on FormatException catch (e) {
    response = body!;
  }
}