ShareResult.fromJson constructor

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

Implementation

factory ShareResult.fromJson(Map<String, dynamic> json) {
  return ShareResult(
    inviteePrincipalId: json['InviteePrincipalId'] as String?,
    principalId: json['PrincipalId'] as String?,
    role: (json['Role'] as String?)?.toRoleType(),
    shareId: json['ShareId'] as String?,
    status: (json['Status'] as String?)?.toShareStatusType(),
    statusMessage: json['StatusMessage'] as String?,
  );
}