CellFormat.fromJson constructor

CellFormat.fromJson(
  1. Map json_
)

Implementation

CellFormat.fromJson(core.Map json_)
    : this(
        backgroundColor: json_.containsKey('backgroundColor')
            ? Color.fromJson(json_['backgroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        backgroundColorStyle: json_.containsKey('backgroundColorStyle')
            ? ColorStyle.fromJson(json_['backgroundColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        borders: json_.containsKey('borders')
            ? Borders.fromJson(
                json_['borders'] as core.Map<core.String, core.dynamic>)
            : null,
        horizontalAlignment: json_['horizontalAlignment'] as core.String?,
        hyperlinkDisplayType: json_['hyperlinkDisplayType'] as core.String?,
        numberFormat: json_.containsKey('numberFormat')
            ? NumberFormat.fromJson(
                json_['numberFormat'] as core.Map<core.String, core.dynamic>)
            : null,
        padding: json_.containsKey('padding')
            ? Padding.fromJson(
                json_['padding'] as core.Map<core.String, core.dynamic>)
            : null,
        textDirection: json_['textDirection'] as core.String?,
        textFormat: json_.containsKey('textFormat')
            ? TextFormat.fromJson(
                json_['textFormat'] as core.Map<core.String, core.dynamic>)
            : null,
        textRotation: json_.containsKey('textRotation')
            ? TextRotation.fromJson(
                json_['textRotation'] as core.Map<core.String, core.dynamic>)
            : null,
        verticalAlignment: json_['verticalAlignment'] as core.String?,
        wrapStrategy: json_['wrapStrategy'] as core.String?,
      );