FlexItemHighlightConfig.fromJson constructor

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

Implementation

factory FlexItemHighlightConfig.fromJson(Map<String, dynamic> json) {
  return FlexItemHighlightConfig(
    baseSizeBox: json.containsKey('baseSizeBox')
        ? BoxStyle.fromJson(json['baseSizeBox'] as Map<String, dynamic>)
        : null,
    baseSizeBorder: json.containsKey('baseSizeBorder')
        ? LineStyle.fromJson(json['baseSizeBorder'] as Map<String, dynamic>)
        : null,
    flexibilityArrow: json.containsKey('flexibilityArrow')
        ? LineStyle.fromJson(json['flexibilityArrow'] as Map<String, dynamic>)
        : null,
  );
}