toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. DividerThemeData? object
)
override

Implementation

@override
Map<String, dynamic>? toJson(DividerThemeData? object) {
  if (object == null) return null;

  return <String, dynamic>{
    'color': const NullableColorConverter().toJson(object.color),
    'endIndent': object.endIndent,
    'indent': object.indent,
    'space': object.space,
    'thickness': object.thickness,
  };
}