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