PackageDetails.fromJson constructor
PackageDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PackageDetails.fromJson(Map<String, dynamic> json) {
return PackageDetails(
availablePackageVersion: json['AvailablePackageVersion'] as String?,
createdAt: timeStampFromJson(json['CreatedAt']),
errorDetails: json['ErrorDetails'] != null
? ErrorDetails.fromJson(json['ErrorDetails'] as Map<String, dynamic>)
: null,
lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']),
packageDescription: json['PackageDescription'] as String?,
packageID: json['PackageID'] as String?,
packageName: json['PackageName'] as String?,
packageStatus: (json['PackageStatus'] as String?)?.toPackageStatus(),
packageType: (json['PackageType'] as String?)?.toPackageType(),
);
}