toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final policyArn = this.policyArn;
  final groups = this.groups;
  final roles = this.roles;
  final users = this.users;
  return {
    'PolicyArn': policyArn,
    if (groups != null) 'Groups': groups,
    if (roles != null) 'Roles': roles,
    if (users != null) 'Users': users,
  };
}