TableRow.fromJson constructor

TableRow.fromJson(
  1. Map json_
)

Implementation

TableRow.fromJson(core.Map json_)
    : this(
        endIndex: json_.containsKey('endIndex')
            ? json_['endIndex'] as core.int
            : null,
        startIndex: json_.containsKey('startIndex')
            ? json_['startIndex'] 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,
        suggestedTableRowStyleChanges:
            json_.containsKey('suggestedTableRowStyleChanges')
                ? (json_['suggestedTableRowStyleChanges']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      SuggestedTableRowStyle.fromJson(
                          value as core.Map<core.String, core.dynamic>),
                    ),
                  )
                : null,
        tableCells: json_.containsKey('tableCells')
            ? (json_['tableCells'] as core.List)
                .map((value) => TableCell.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tableRowStyle: json_.containsKey('tableRowStyle')
            ? TableRowStyle.fromJson(
                json_['tableRowStyle'] as core.Map<core.String, core.dynamic>)
            : null,
      );