toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{'name': name};
if (description != null) {
json['description'] = description;
}
if (schema != null) {
json['schema'] = schema;
}
if (strict != null) {
json['strict'] = strict;
}
return json;
}