CellData.fromJson constructor

CellData.fromJson(
  1. Map json_
)

Implementation

CellData.fromJson(core.Map json_)
    : this(
        dataSourceFormula: json_.containsKey('dataSourceFormula')
            ? DataSourceFormula.fromJson(json_['dataSourceFormula']
                as core.Map<core.String, core.dynamic>)
            : null,
        dataSourceTable: json_.containsKey('dataSourceTable')
            ? DataSourceTable.fromJson(json_['dataSourceTable']
                as core.Map<core.String, core.dynamic>)
            : null,
        dataValidation: json_.containsKey('dataValidation')
            ? DataValidationRule.fromJson(json_['dataValidation']
                as core.Map<core.String, core.dynamic>)
            : null,
        effectiveFormat: json_.containsKey('effectiveFormat')
            ? CellFormat.fromJson(json_['effectiveFormat']
                as core.Map<core.String, core.dynamic>)
            : null,
        effectiveValue: json_.containsKey('effectiveValue')
            ? ExtendedValue.fromJson(json_['effectiveValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        formattedValue: json_.containsKey('formattedValue')
            ? json_['formattedValue'] as core.String
            : null,
        hyperlink: json_.containsKey('hyperlink')
            ? json_['hyperlink'] as core.String
            : null,
        note: json_.containsKey('note') ? json_['note'] as core.String : null,
        pivotTable: json_.containsKey('pivotTable')
            ? PivotTable.fromJson(
                json_['pivotTable'] as core.Map<core.String, core.dynamic>)
            : null,
        textFormatRuns: json_.containsKey('textFormatRuns')
            ? (json_['textFormatRuns'] as core.List)
                .map((value) => TextFormatRun.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        userEnteredFormat: json_.containsKey('userEnteredFormat')
            ? CellFormat.fromJson(json_['userEnteredFormat']
                as core.Map<core.String, core.dynamic>)
            : null,
        userEnteredValue: json_.containsKey('userEnteredValue')
            ? ExtendedValue.fromJson(json_['userEnteredValue']
                as core.Map<core.String, core.dynamic>)
            : null,
      );