toJson method
Implementation
Map<String, dynamic> toJson() => {
if (id != null) 'id': id,
if (mode != null) 'mode': mode!.toJson(),
if (branding != null) 'branding': branding!.toJson(),
if (lightColors != null) 'lightColors': lightColors!.toJson(),
if (darkColors != null) 'darkColors': darkColors!.toJson(),
if (resources != null) 'resources': resources!.toJson(),
if (dimensions != null) 'dimensions': dimensions!.toJson(),
};