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,
        rows: json_.containsKey('rows') ? json_['rows'] as core.int : null,
        suggestedDeletionIds: json_.containsKey('suggestedDeletionIds')
            ? (json_['suggestedDeletionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        suggestedInsertionIds: json_.containsKey('suggestedInsertionIds')
            ? (json_['suggestedInsertionIds'] as core.List)
                .map((value) => value as core.String)
                .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,
        tableStyle: json_.containsKey('tableStyle')
            ? TableStyle.fromJson(
                json_['tableStyle'] as core.Map<core.String, core.dynamic>)
            : null,
      );