Map<String, dynamic> toJson() { return { 'lines': lines, 'td1': td1?.toJson(), 'td2': td2?.toJson(), 'td3': td3?.toJson(), }; }