fromJson static method

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

Implementation

static UpgradedGiftBackdropColors? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return UpgradedGiftBackdropColors(
    centerColor: (json['center_color'] as int?) ?? 0,
    edgeColor: (json['edge_color'] as int?) ?? 0,
    symbolColor: (json['symbol_color'] as int?) ?? 0,
    textColor: (json['text_color'] as int?) ?? 0,
  );
}