TableCellStyle.fromJson constructor

TableCellStyle.fromJson(
  1. Map json_
)

Implementation

TableCellStyle.fromJson(core.Map json_)
    : this(
        backgroundColor: json_.containsKey('backgroundColor')
            ? OptionalColor.fromJson(json_['backgroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        borderBottom: json_.containsKey('borderBottom')
            ? TableCellBorder.fromJson(
                json_['borderBottom'] as core.Map<core.String, core.dynamic>)
            : null,
        borderLeft: json_.containsKey('borderLeft')
            ? TableCellBorder.fromJson(
                json_['borderLeft'] as core.Map<core.String, core.dynamic>)
            : null,
        borderRight: json_.containsKey('borderRight')
            ? TableCellBorder.fromJson(
                json_['borderRight'] as core.Map<core.String, core.dynamic>)
            : null,
        borderTop: json_.containsKey('borderTop')
            ? TableCellBorder.fromJson(
                json_['borderTop'] as core.Map<core.String, core.dynamic>)
            : null,
        columnSpan: json_.containsKey('columnSpan')
            ? json_['columnSpan'] as core.int
            : null,
        contentAlignment: json_.containsKey('contentAlignment')
            ? json_['contentAlignment'] as core.String
            : null,
        paddingBottom: json_.containsKey('paddingBottom')
            ? Dimension.fromJson(
                json_['paddingBottom'] as core.Map<core.String, core.dynamic>)
            : null,
        paddingLeft: json_.containsKey('paddingLeft')
            ? Dimension.fromJson(
                json_['paddingLeft'] as core.Map<core.String, core.dynamic>)
            : null,
        paddingRight: json_.containsKey('paddingRight')
            ? Dimension.fromJson(
                json_['paddingRight'] as core.Map<core.String, core.dynamic>)
            : null,
        paddingTop: json_.containsKey('paddingTop')
            ? Dimension.fromJson(
                json_['paddingTop'] as core.Map<core.String, core.dynamic>)
            : null,
        rowSpan: json_.containsKey('rowSpan')
            ? json_['rowSpan'] as core.int
            : null,
      );