UEmptyResponse.fromJson constructor

UEmptyResponse.fromJson(
  1. String str
)

Implementation

factory UEmptyResponse.fromJson(String str) {
  final Map<String, dynamic> jsonMap = json.decode(str);
  return UEmptyResponse(
    status: jsonMap["status"] ?? 0,
    message: jsonMap["message"] ?? "",
  );
}