toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'nameLabelText': nameLabelText,
    'loginBtnText': loginBtnText,
    'backgroundColor': backgroundColor,
    'logoImage': logoImage,
    'logoWidth': logoWidth,
    'logoHeight': logoHeight,
    'logoIsHidden': logoIsHidden,
    'changeBtnIsHidden': changeBtnIsHidden,
    'changeBtnTitle': changeBtnTitle,
    'checkedImage': checkedImage,
    'uncheckImage': uncheckImage,
    'customViewBlockList':
        customViewBlockList?.map((e) => e.toJson()).toList(growable: false),
  }..removeWhere((key, value) => value == null);
}