TemplateItem.fromJson constructor

TemplateItem.fromJson(
  1. Map json_
)

Implementation

TemplateItem.fromJson(core.Map json_)
    : this(
        firstValue: json_.containsKey('firstValue')
            ? FieldSelector.fromJson(
                json_['firstValue'] as core.Map<core.String, core.dynamic>)
            : null,
        predefinedItem: json_.containsKey('predefinedItem')
            ? json_['predefinedItem'] as core.String
            : null,
        secondValue: json_.containsKey('secondValue')
            ? FieldSelector.fromJson(
                json_['secondValue'] as core.Map<core.String, core.dynamic>)
            : null,
      );