AccountBrandingSettings.fromJson constructor

AccountBrandingSettings.fromJson(
  1. Object? json
)

Implementation

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