Appearance.fromJson constructor

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

Implementation

factory Appearance.fromJson(Map<String, dynamic> json) {
  return Appearance(
    lightMode: LightMode.fromJson(json['light_mode'] ?? ''),
    darkMode: LightMode.fromJson(json['dark_mode'] ?? ''),
  );
}