toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final directoryMode = this.directoryMode;
  final fileMode = this.fileMode;
  final groupId = this.groupId;
  final ownerId = this.ownerId;
  return {
    if (directoryMode != null) 'DirectoryMode': directoryMode,
    if (fileMode != null) 'FileMode': fileMode,
    if (groupId != null) 'GroupId': groupId,
    if (ownerId != null) 'OwnerId': ownerId,
  };
}