Integration.fromJson constructor
Integration.fromJson(
- Map<String, dynamic> json
)
Implementation
Integration.fromJson(Map<String, dynamic> json)
: tenantId = TenantId.fromJson(json['tenantId']),
defaultConverterId = ConverterId.fromJson(json['defaultConverterId']),
downlinkConverterId = json['downlinkConverterId'] != null
? ConverterId.fromJson(json['downlinkConverterId'])
: null,
name = json['name'],
routingKey = json['routingKey'],
type = integrationTypeFromString(json['type']),
debugMode = json['debugMode'],
enabled = json['enabled'],
remote = json['remote'],
allowCreateDevicesOrAssets = json['allowCreateDevicesOrAssets'],
secret = json['secret'],
configuration = json['configuration'],
externalId = json['externalId'] != null
? IntegrationId.fromJson(json['externalId'])
: null,
super.fromJson(json);