MappingRule.fromJson constructor

MappingRule.fromJson(
  1. Map json_
)

Implementation

MappingRule.fromJson(core.Map json_)
    : this(
        conditionalColumnSetValue:
            json_.containsKey('conditionalColumnSetValue')
                ? ConditionalColumnSetValue.fromJson(
                    json_['conditionalColumnSetValue']
                        as core.Map<core.String, core.dynamic>)
                : null,
        convertRowidColumn: json_.containsKey('convertRowidColumn')
            ? ConvertRowIdToColumn.fromJson(json_['convertRowidColumn']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        entityMove: json_.containsKey('entityMove')
            ? EntityMove.fromJson(
                json_['entityMove'] as core.Map<core.String, core.dynamic>)
            : null,
        filter: json_.containsKey('filter')
            ? MappingRuleFilter.fromJson(
                json_['filter'] as core.Map<core.String, core.dynamic>)
            : null,
        filterTableColumns: json_.containsKey('filterTableColumns')
            ? FilterTableColumns.fromJson(json_['filterTableColumns']
                as core.Map<core.String, core.dynamic>)
            : null,
        multiColumnDataTypeChange:
            json_.containsKey('multiColumnDataTypeChange')
                ? MultiColumnDatatypeChange.fromJson(
                    json_['multiColumnDataTypeChange']
                        as core.Map<core.String, core.dynamic>)
                : null,
        multiEntityRename: json_.containsKey('multiEntityRename')
            ? MultiEntityRename.fromJson(json_['multiEntityRename']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        revisionCreateTime: json_.containsKey('revisionCreateTime')
            ? json_['revisionCreateTime'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        ruleOrder: json_.containsKey('ruleOrder')
            ? json_['ruleOrder'] as core.String
            : null,
        ruleScope: json_.containsKey('ruleScope')
            ? json_['ruleScope'] as core.String
            : null,
        setTablePrimaryKey: json_.containsKey('setTablePrimaryKey')
            ? SetTablePrimaryKey.fromJson(json_['setTablePrimaryKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        singleColumnChange: json_.containsKey('singleColumnChange')
            ? SingleColumnChange.fromJson(json_['singleColumnChange']
                as core.Map<core.String, core.dynamic>)
            : null,
        singleEntityRename: json_.containsKey('singleEntityRename')
            ? SingleEntityRename.fromJson(json_['singleEntityRename']
                as core.Map<core.String, core.dynamic>)
            : null,
        singlePackageChange: json_.containsKey('singlePackageChange')
            ? SinglePackageChange.fromJson(json_['singlePackageChange']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceSqlChange: json_.containsKey('sourceSqlChange')
            ? SourceSqlChange.fromJson(json_['sourceSqlChange']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );