toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (_defaultButton != null) {
    map['default_button'] = _defaultButton?.toJson();
  }
  if (_outlined != null) {
    map['outlined'] = _outlined?.toJson();
  }
  if (_navigation != null) {
    map['navigation'] = _navigation?.toJson();
  }
  return map;
}