SpreadsheetTheme.fromJson constructor

SpreadsheetTheme.fromJson(
  1. Map json_
)

Implementation

SpreadsheetTheme.fromJson(core.Map json_)
    : this(
        primaryFontFamily: json_.containsKey('primaryFontFamily')
            ? json_['primaryFontFamily'] as core.String
            : null,
        themeColors: json_.containsKey('themeColors')
            ? (json_['themeColors'] as core.List)
                .map((value) => ThemeColorPair.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );