toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.firstName != null) {
    json[r'first_name'] = this.firstName;
  } else {
    json[r'first_name'] = null;
  }
    json[r'name'] = this.name;
    json[r'photo'] = this.photo;
    json[r'is_hidden'] = this.isHidden;
    json[r'is_active'] = this.isActive;
    json[r'slug'] = this.slug;
    json[r'has_whiteboard_access'] = this.hasWhiteboardAccess;
    json[r'photo_thumbnail'] = this.photoThumbnail;
    json[r'enable_trial'] = this.enableTrial;
    json[r'enable_instant'] = this.enableInstant;
  if (this.availability != null) {
    json[r'availability'] = this.availability;
  } else {
    json[r'availability'] = null;
  }
  if (this.timeOff != null) {
    json[r'time_off'] = this.timeOff;
  } else {
    json[r'time_off'] = null;
  }
    json[r'user_timezone'] = this.userTimezone;
    json[r'has_stripe_account'] = this.hasStripeAccount;
  return json;
}