PlexSuccess<T> constructor

PlexSuccess<T>(
  1. String? body
)

Implementation

PlexSuccess(String? body) {
  if (body == null) response = null;
  try {
    response = jsonDecode(body!);
  } catch (e) {
    response = body!.toString();
  }
}