SortSpec.fromJson constructor

SortSpec.fromJson(
  1. 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_['dimensionIndex'] as core.int?,
      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_['sortOrder'] as core.String?,
    );