Connection.fromJson constructor
Connection.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Connection.fromJson(Map<String, dynamic> json) {
return Connection(
connectionProperties: (json['ConnectionProperties']
as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k.toConnectionPropertyKey(), e as String)),
connectionType: (json['ConnectionType'] as String?)?.toConnectionType(),
creationTime: timeStampFromJson(json['CreationTime']),
description: json['Description'] as String?,
lastUpdatedBy: json['LastUpdatedBy'] as String?,
lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
matchCriteria: (json['MatchCriteria'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
name: json['Name'] as String?,
physicalConnectionRequirements: json['PhysicalConnectionRequirements'] !=
null
? PhysicalConnectionRequirements.fromJson(
json['PhysicalConnectionRequirements'] as Map<String, dynamic>)
: null,
);
}