SvgDebugAnimationDescriptor.fromJson constructor

SvgDebugAnimationDescriptor.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SvgDebugAnimationDescriptor.fromJson(Map<String, Object?> json) {
  return SvgDebugAnimationDescriptor(
    type: json['type']! as String,
    attributeName: json['attributeName']! as String,
    durationMs: (json['durationMs']! as num).toInt(),
    beginMs: (json['beginMs']! as num).toInt(),
    repeatCount: json['repeatCount']! as String,
    active: json['active']! as bool,
  );
}