DescribeDocumentPermissionResponse.fromJson constructor

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

Implementation

factory DescribeDocumentPermissionResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeDocumentPermissionResponse(
    accountIds: (json['AccountIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    accountSharingInfoList: (json['AccountSharingInfoList'] as List?)
        ?.whereNotNull()
        .map((e) => AccountSharingInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}