Convert T to json compatible
T
@override JSONTYPE toJson() => _modelValue != null ? _modelValue!.toJson() : _internalField?.toJson();