toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  var json = <String, dynamic>{
    'allowUserCreation': allowUserCreation,
    'activateUser': activateUser,
    'type': type.toShortString()
  };
  if (basic != null) {
    json['basic'] = basic!.toJson();
  }
  if (custom != null) {
    json['custom'] = custom!.toJson();
  }
  return json;
}