CourierBrandSettings.fromJson constructor

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

Implementation

factory CourierBrandSettings.fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return CourierBrandSettings();
  }
  return CourierBrandSettings(
    inapp: CourierBrandInApp.fromJson(json['inapp']),
    colors: CourierBrandColors.fromJson(json['colors']),
  );
}