Table.fromJson constructor

Table.fromJson(
  1. Map json_
)

Implementation

Table.fromJson(core.Map json_)
    : this(
        columns: json_.containsKey('columns')
            ? json_['columns'] as core.int
            : null,
        horizontalBorderRows: json_.containsKey('horizontalBorderRows')
            ? (json_['horizontalBorderRows'] as core.List)
                .map((value) => TableBorderRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rows: json_.containsKey('rows') ? json_['rows'] as core.int : null,
        tableColumns: json_.containsKey('tableColumns')
            ? (json_['tableColumns'] as core.List)
                .map((value) => TableColumnProperties.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tableRows: json_.containsKey('tableRows')
            ? (json_['tableRows'] as core.List)
                .map((value) => TableRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        verticalBorderRows: json_.containsKey('verticalBorderRows')
            ? (json_['verticalBorderRows'] as core.List)
                .map((value) => TableBorderRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );