|
|
|
|
@ -68,11 +68,10 @@ class OccasionConfigModel {
|
|
|
|
|
factory OccasionConfigModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
return OccasionConfigModel(
|
|
|
|
|
key: (json['key'] as String?) ?? 'none',
|
|
|
|
|
// enabled: (json['enabled'] as bool?) ?? false,
|
|
|
|
|
enabled: (json['enabled'] as bool?) ?? false,
|
|
|
|
|
// enabled: true,
|
|
|
|
|
startDate: _parseDate(json['start_date']),
|
|
|
|
|
endDate: _parseDate(json['end_date']),
|
|
|
|
|
enabled: true,
|
|
|
|
|
// TODO: FOR TESTING ONLY — REMOVE BEFORE RELEASE. The "enabled" field is not yet supported in remote config, so we always treat it as true for now.
|
|
|
|
|
primaryColorHex: json['primary_color'] as String?,
|
|
|
|
|
backgroundOpacityImage: json['background_opacity_image'] as String?,
|
|
|
|
|
backgroundImageOpacity: (json['background_image_opacity'] as num?)?.toDouble() ?? 1.0,
|
|
|
|
|
|