ColumnConfigBeanColumnsItem.fromJson constructor

ColumnConfigBeanColumnsItem.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ColumnConfigBeanColumnsItem.fromJson(Map<String, Object?> json) {
  return ColumnConfigBeanColumnsItem(
    name: json[r'name'] as String?,
    statuses: (json[r'statuses'] as List<Object?>?)
            ?.map((i) => ColumnConfigBeanColumnsItemStatusesItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    min: (json[r'min'] as num?)?.toInt(),
    max: (json[r'max'] as num?)?.toInt(),
  );
}