toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final permissions = this.permissions;
  final principal = this.principal;
  return {
    if (permissions != null)
      'Permissions': permissions.map((e) => e.toValue()).toList(),
    if (principal != null) 'Principal': principal,
  };
}