toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'keyframes': keyframes.map((e) => e.toJson()).toList(),
    if (name != null) 'name': name,
  };
}