toJson method
Implementation
@override
Map<String, dynamic>? toJson(DataTableThemeData? value) {
if (value == null) return null;
return <String, dynamic>{
'columnSpacing': value.columnSpacing,
'dataRowColor':
const NullableMaterialStatePropertyColorConverter().toJson(
value.dataRowColor,
),
'dataRowHeight': value.dataRowHeight,
'dataTextStyle': const NullableTextStyleConverter().toJson(
value.dataTextStyle,
),
'dividerThickness': value.dividerThickness,
'headingRowColor':
const NullableMaterialStatePropertyColorConverter().toJson(
value.headingRowColor,
),
'headingRowHeight': value.headingRowHeight,
'headingTextStyle': const NullableTextStyleConverter().toJson(
value.headingTextStyle,
),
'horizontalMargin': value.horizontalMargin,
};
throw 'Json_Unsuported_Value';
}