SkillData.fromJson constructor
Implementation
factory SkillData.fromJson(String name, Map<String, dynamic> json) {
return SkillData(
name: name,
element: skillFromString(json['element'] as String)!,
effect: json['effect'] as String,
personas: json['personas'],
negotiations: json['talk'],
fusion: json['fuse'] is String ? [json['fuse']] : json['fuse'],
unique: json['unique'],
dlc: json['dlc'] ?? false,
note: json['note'],
cost: json['cost'],
);
}