toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (name != null) {
    _json[r'name'] = name;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (purpose != null) {
    _json[r'purpose'] = purpose;
  }
  if (header != null) {
    _json[r'header'] = header;
  }
  return _json;
}