Map<String, dynamic> toJson() { return { 'layoutIndex': [...layoutIndex], 'bounds': bounds.map((e) => e.toJson()).toList(), 'start': [...start], 'length': [...length], }; }