SuiObjectResponse.fromJson constructor
SuiObjectResponse.fromJson(
- dynamic data
Implementation
factory SuiObjectResponse.fromJson(dynamic data) {
SuiObject? object;
SuiObjectError? error;
if (data['data'] != null) {
object = SuiObject.fromJson(data['data']);
}
if (data['error'] != null) {
error = SuiObjectError.fromJson(data['error']);
}
return SuiObjectResponse(object, error);
}