SWTheme.fromJson constructor

SWTheme.fromJson(
  1. dynamic json
)

Implementation

SWTheme.fromJson(dynamic json) {
  _name = json['name'];
  _style = json['style'] != null ? Style.fromJson(json['style']) : null;
  if (json['dimTemplates'] != null) {
    _dimTemplates = [];
    json['dimTemplates'].forEach((v) {
      _dimTemplates?.add(DimTemplates.fromJson(v));
    });
  }
  _dropinConfig =
  json['dropinConfig'] != null ? DropinConfig.fromJson(json['dropinConfig']) : null;
}