SkillsStoreSkill.fromJson constructor

SkillsStoreSkill.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SkillsStoreSkill.fromJson(Map<String, dynamic> json) {
  return SkillsStoreSkill(
    iconUrl: json['IconUrl'] as String?,
    sampleUtterances: (json['SampleUtterances'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    shortDescription: json['ShortDescription'] as String?,
    skillDetails: json['SkillDetails'] != null
        ? SkillDetails.fromJson(json['SkillDetails'] as Map<String, dynamic>)
        : null,
    skillId: json['SkillId'] as String?,
    skillName: json['SkillName'] as String?,
    supportsLinking: json['SupportsLinking'] as bool?,
  );
}