StartImportResponse.fromJson constructor

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

Implementation

factory StartImportResponse.fromJson(Map<String, dynamic> json) {
  return StartImportResponse(
    createdDate: timeStampFromJson(json['createdDate']),
    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(),
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}