TableCell.fromJson constructor

TableCell.fromJson(
  1. Map json_
)

Implementation

TableCell.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? (json_['content'] as core.List)
                .map((value) => StructuralElement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        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,
        suggestedTableCellStyleChanges:
            json_.containsKey('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>),
                    ),
                  )
                : null,
        tableCellStyle: json_.containsKey('tableCellStyle')
            ? TableCellStyle.fromJson(json_['tableCellStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
      );