TableCell.fromJson constructor

TableCell.fromJson(
  1. Map json_
)

Implementation

TableCell.fromJson(core.Map json_)
    : this(
        content: (json_['content'] as core.List?)
            ?.map((value) => StructuralElement.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        endIndex: json_['endIndex'] as core.int?,
        startIndex: json_['startIndex'] as core.int?,
        suggestedDeletionIds: (json_['suggestedDeletionIds'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        suggestedInsertionIds: (json_['suggestedInsertionIds'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        suggestedTableCellStyleChanges:
            (json_['suggestedTableCellStyleChanges']
                    as core.Map<core.String, core.dynamic>?)
                ?.map(
          (key, value) => core.MapEntry(
            key,
            SuggestedTableCellStyle.fromJson(
                value as core.Map<core.String, core.dynamic>),
          ),
        ),
        tableCellStyle: json_.containsKey('tableCellStyle')
            ? TableCellStyle.fromJson(json_['tableCellStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
      );