toJson method

Map<String, dynamic> toJson()

Implementation

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