FlexContainerHighlightConfig.fromJson constructor

FlexContainerHighlightConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FlexContainerHighlightConfig.fromJson(Map<String, dynamic> json) {
  return FlexContainerHighlightConfig(
    containerBorder: json.containsKey('containerBorder')
        ? LineStyle.fromJson(json['containerBorder'] as Map<String, dynamic>)
        : null,
    lineSeparator: json.containsKey('lineSeparator')
        ? LineStyle.fromJson(json['lineSeparator'] as Map<String, dynamic>)
        : null,
    itemSeparator: json.containsKey('itemSeparator')
        ? LineStyle.fromJson(json['itemSeparator'] as Map<String, dynamic>)
        : null,
    mainDistributedSpace: json.containsKey('mainDistributedSpace')
        ? BoxStyle.fromJson(
            json['mainDistributedSpace'] as Map<String, dynamic>)
        : null,
    crossDistributedSpace: json.containsKey('crossDistributedSpace')
        ? BoxStyle.fromJson(
            json['crossDistributedSpace'] as Map<String, dynamic>)
        : null,
    rowGapSpace: json.containsKey('rowGapSpace')
        ? BoxStyle.fromJson(json['rowGapSpace'] as Map<String, dynamic>)
        : null,
    columnGapSpace: json.containsKey('columnGapSpace')
        ? BoxStyle.fromJson(json['columnGapSpace'] as Map<String, dynamic>)
        : null,
    crossAlignment: json.containsKey('crossAlignment')
        ? LineStyle.fromJson(json['crossAlignment'] as Map<String, dynamic>)
        : null,
  );
}