toJson method
Implementation
@override
Map<String, dynamic>? toJson(InputDecorationTheme? value) {
if (value == null) return null;
return <String, dynamic>{
'alignLabelWithHint': value.alignLabelWithHint,
'border': const NullableInputBorderConverter().toJson(value.border),
'contentPadding': const NullableEdgeInsetsGeometryConverter()
.toJson(value.contentPadding as EdgeInsets?),
'counterStyle':
const NullableTextStyleConverter().toJson(value.counterStyle),
'disabledBorder':
const NullableInputBorderConverter().toJson(value.disabledBorder),
'enabledBorder':
const NullableInputBorderConverter().toJson(value.enabledBorder),
'errorBorder':
const NullableInputBorderConverter().toJson(value.errorBorder),
'errorMaxLines': value.errorMaxLines,
'errorStyle': const NullableTextStyleConverter().toJson(value.errorStyle),
'fillColor': const NullableColorConverter().toJson(value.fillColor),
'filled': value.filled,
'floatingLabelBehavior':
const NullableFloatingLabelBehaviorConverter().toJson(
value.floatingLabelBehavior,
),
'focusColor': const NullableColorConverter().toJson(value.focusColor),
'focusedBorder':
const NullableInputBorderConverter().toJson(value.focusedBorder),
'focusedErrorBorder':
const NullableInputBorderConverter().toJson(value.focusedErrorBorder),
'helperMaxLines': value.helperMaxLines,
'helperStyle':
const NullableTextStyleConverter().toJson(value.helperStyle),
'hintStyle': const NullableTextStyleConverter().toJson(value.hintStyle),
'hoverColor': const NullableColorConverter().toJson(value.hoverColor),
'isCollapsed': value.isCollapsed,
'isDense': value.isDense,
'labelStyle': const NullableTextStyleConverter().toJson(value.labelStyle),
'prefixStyle':
const NullableTextStyleConverter().toJson(value.prefixStyle),
'suffixStyle':
const NullableTextStyleConverter().toJson(value.suffixStyle),
};
throw 'Json_Unsuported_Value';
}