TriggerEntity.fromJson constructor

TriggerEntity.fromJson(
  1. Map json_
)

Implementation

TriggerEntity.fromJson(core.Map json_)
    : this(
        customFeatures: json_.containsKey('customFeatures')
            ? json_['customFeatures'] as core.Map<core.String, core.dynamic>
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sqlCode: json_.containsKey('sqlCode')
            ? json_['sqlCode'] as core.String
            : null,
        triggerType: json_.containsKey('triggerType')
            ? json_['triggerType'] as core.String
            : null,
        triggeringEvents: json_.containsKey('triggeringEvents')
            ? (json_['triggeringEvents'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );