FlowTemplateDescription.fromJson constructor

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

Implementation

factory FlowTemplateDescription.fromJson(Map<String, dynamic> json) {
  return FlowTemplateDescription(
    definition: json['definition'] != null
        ? DefinitionDocument.fromJson(
            json['definition'] as Map<String, dynamic>)
        : null,
    summary: json['summary'] != null
        ? FlowTemplateSummary.fromJson(
            json['summary'] as Map<String, dynamic>)
        : null,
    validatedNamespaceVersion: json['validatedNamespaceVersion'] as int?,
  );
}