GetBackgroundColorsResult.fromJson constructor

GetBackgroundColorsResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetBackgroundColorsResult.fromJson(Map<String, dynamic> json) {
  return GetBackgroundColorsResult(
    backgroundColors: json.containsKey('backgroundColors')
        ? (json['backgroundColors'] as List).map((e) => e as String).toList()
        : null,
    computedFontSize: json.containsKey('computedFontSize')
        ? json['computedFontSize'] as String
        : null,
    computedFontWeight: json.containsKey('computedFontWeight')
        ? json['computedFontWeight'] as String
        : null,
  );
}