ReportColumn.fromJson constructor

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

Restores a report column from VPS-compatible JSON.

Implementation

factory ReportColumn.fromJson(Map<String, dynamic> json) => ReportColumn(
  title: json['title'] ?? 'Spalte',
  field: json['field'] ?? '',
  flex: (json['flex'] ?? 1).toDouble(),
  format: ColumnFormat.values.byName(json['format'] ?? 'text'),
  alignRight: json['alignRight'] ?? false,
);