toJson method

Map<String, dynamic> toJson()

Implementation

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