Blueprint.fromJson constructor

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

Implementation

factory Blueprint.fromJson(Map<String, dynamic> json) {
  return Blueprint(
    blueprintId: json['blueprintId'] as String?,
    description: json['description'] as String?,
    group: json['group'] as String?,
    isActive: json['isActive'] as bool?,
    licenseUrl: json['licenseUrl'] as String?,
    minPower: json['minPower'] as int?,
    name: json['name'] as String?,
    platform: (json['platform'] as String?)?.toInstancePlatform(),
    productUrl: json['productUrl'] as String?,
    type: (json['type'] as String?)?.toBlueprintType(),
    version: json['version'] as String?,
    versionCode: json['versionCode'] as String?,
  );
}