SortSpec.fromJson constructor
SortSpec.fromJson(
- Map json_
Implementation
SortSpec.fromJson(core.Map json_)
: this(
backgroundColor: json_.containsKey('backgroundColor')
? Color.fromJson(json_['backgroundColor']
as core.Map<core.String, core.dynamic>)
: null,
backgroundColorStyle: json_.containsKey('backgroundColorStyle')
? ColorStyle.fromJson(json_['backgroundColorStyle']
as core.Map<core.String, core.dynamic>)
: null,
dataSourceColumnReference:
json_.containsKey('dataSourceColumnReference')
? DataSourceColumnReference.fromJson(
json_['dataSourceColumnReference']
as core.Map<core.String, core.dynamic>)
: null,
dimensionIndex: json_.containsKey('dimensionIndex')
? json_['dimensionIndex'] as core.int
: null,
foregroundColor: json_.containsKey('foregroundColor')
? Color.fromJson(json_['foregroundColor']
as core.Map<core.String, core.dynamic>)
: null,
foregroundColorStyle: json_.containsKey('foregroundColorStyle')
? ColorStyle.fromJson(json_['foregroundColorStyle']
as core.Map<core.String, core.dynamic>)
: null,
sortOrder: json_.containsKey('sortOrder')
? json_['sortOrder'] as core.String
: null,
);