ImportResult.fromJson constructor
ImportResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ImportResult.fromJson(Map<String, dynamic> json) {
return ImportResult(
variables: json['variables'] != null
? Map<String, List<String>>.from((json['variables'] as Map).map(
(key, value) => MapEntry(key, List<String>.from(value)),
))
: null,
credentials: json['credentials'] != null
? List<CredentialInfo>.from(
json['credentials'].map((x) => CredentialInfo.fromJson(x)),
)
: null,
workflows: json['workflows'] != null
? List<WorkflowInfo>.from(
json['workflows'].map((x) => WorkflowInfo.fromJson(x)),
)
: null,
tags: json['tags'] != null ? TagMapping.fromJson(json['tags']) : null,
);
}