Map<String, dynamic> toMap() { return { 'stepTime': stepTime, 'frames': frames.map((e) => e.toMap()).toList(), }; }