AnimationSelection.fromJson constructor

  1. @override
AnimationSelection.fromJson(
  1. Map<String, dynamic> json
)

Creates a AnimationSelection from json.

Implementation

@override
factory AnimationSelection.fromJson(Map<String, dynamic> json) {
  final info = Selection.fromJson(json);

  return AnimationSelection(
    info: info,
    frameCount: json['frameCount'] as int,
    stepTime: json['stepTime'] as double,
    loop: json['loop'] as bool,
  );
}