toJson method
Implementation
@override
Map<String, dynamic>? toJson(MaterialStateProperty<TextStyle?>? object) {
if (object == null) return null;
return {
'disabled': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.disabled})),
'dragged': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.dragged})),
'empty': const NullableTextStyleConverter().toJson(object.resolve({})),
'error': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.error})),
'focused': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.focused})),
'hovered': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.hovered})),
'pressed': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.pressed})),
'selected': const NullableTextStyleConverter()
.toJson(object.resolve({MaterialState.selected})),
};
}