ViewEntity.fromJson constructor

ViewEntity.fromJson(
  1. Map json_
)

Implementation

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