AwsIamAccessKeyDetails.fromJson constructor

AwsIamAccessKeyDetails.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AwsIamAccessKeyDetails.fromJson(Map<String, dynamic> json) {
  return AwsIamAccessKeyDetails(
    accessKeyId: json['AccessKeyId'] as String?,
    accountId: json['AccountId'] as String?,
    createdAt: json['CreatedAt'] as String?,
    principalId: json['PrincipalId'] as String?,
    principalName: json['PrincipalName'] as String?,
    principalType: json['PrincipalType'] as String?,
    sessionContext: json['SessionContext'] != null
        ? AwsIamAccessKeySessionContext.fromJson(
            json['SessionContext'] as Map<String, dynamic>)
        : null,
    status: (json['Status'] as String?)?.toAwsIamAccessKeyStatus(),
    userName: json['UserName'] as String?,
  );
}