Trust.fromJson constructor
Implementation
factory Trust.fromJson(Map<String, dynamic> json) {
return Trust(
createdDateTime: timeStampFromJson(json['CreatedDateTime']),
directoryId: json['DirectoryId'] as String?,
lastUpdatedDateTime: timeStampFromJson(json['LastUpdatedDateTime']),
remoteDomainName: json['RemoteDomainName'] as String?,
selectiveAuth: (json['SelectiveAuth'] as String?)?.toSelectiveAuth(),
stateLastUpdatedDateTime:
timeStampFromJson(json['StateLastUpdatedDateTime']),
trustDirection: (json['TrustDirection'] as String?)?.toTrustDirection(),
trustId: json['TrustId'] as String?,
trustState: (json['TrustState'] as String?)?.toTrustState(),
trustStateReason: json['TrustStateReason'] as String?,
trustType: (json['TrustType'] as String?)?.toTrustType(),
);
}