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