SkillDetails.fromJson constructor

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

Implementation

factory SkillDetails.fromJson(Map<String, dynamic> json) {
  return SkillDetails(
    bulletPoints: (json['BulletPoints'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    developerInfo: json['DeveloperInfo'] != null
        ? DeveloperInfo.fromJson(
            json['DeveloperInfo'] as Map<String, dynamic>)
        : null,
    endUserLicenseAgreement: json['EndUserLicenseAgreement'] as String?,
    genericKeywords: (json['GenericKeywords'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    invocationPhrase: json['InvocationPhrase'] as String?,
    newInThisVersionBulletPoints:
        (json['NewInThisVersionBulletPoints'] as List?)
            ?.whereNotNull()
            .map((e) => e as String)
            .toList(),
    productDescription: json['ProductDescription'] as String?,
    releaseDate: json['ReleaseDate'] as String?,
    reviews: (json['Reviews'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    skillTypes: (json['SkillTypes'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}