GetImportResponse.fromJson constructor

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

Implementation

factory GetImportResponse.fromJson(Map<String, dynamic> json) {
  return GetImportResponse(
    createdDate: timeStampFromJson(json['createdDate']),
    failureReason: (json['failureReason'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    importId: json['importId'] as String?,
    importStatus: (json['importStatus'] as String?)?.toImportStatus(),
    mergeStrategy: (json['mergeStrategy'] as String?)?.toMergeStrategy(),
    name: json['name'] as String?,
    resourceType: (json['resourceType'] as String?)?.toResourceType(),
  );
}