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