@override Object toJson() { return { if (state.isNotDefault) 'state': state.toJson(), if (errorStatus.isNotDefault) 'errorStatus': errorStatus, }; }