AccountBranding.fromJson constructor
AccountBranding.fromJson(
- Object? json
Implementation
factory AccountBranding.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountBranding(
icon: map['icon'] == null ? null : (map['icon'] as String),
logo: map['logo'] == null ? null : (map['logo'] as String),
primaryColor: map['primary_color'] == null
? null
: (map['primary_color'] as String),
secondaryColor: map['secondary_color'] == null
? null
: (map['secondary_color'] as String),
);
}