class ogresponse { String? id; String? name; String? title; String? profile; List? children; String? error; String? message; int? sessionExists; ogresponse( {this.id, this.name, this.title, this.profile, this.children, this.error, this.message, this.sessionExists}); ogresponse.fromJson(Map json) { id = json['id']; name = json['name']; title = json['title']; profile = json['profile']; if (json['children'] != null) { children = []; json['children'].forEach((v) { children!.add(new Children.fromJson(v)); }); } error = json['error']; message = json['message']; sessionExists = json['session_exists']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; data['title'] = this.title; data['profile'] = this.profile; if (this.children != null) { data['children'] = this.children!.map((v) => v.toJson()).toList(); } data['error'] = this.error; data['message'] = this.message; data['session_exists'] = this.sessionExists; return data; } } class Children { String? id; String? name; String? title; String? profile; List? children; Children({this.id, this.name, this.title, this.profile, this.children}); Children.fromJson(Map json) { id = json['id']; name = json['name']; title = json['title']; profile = json['profile']; if (json['children'] != null) { children = []; json['children'].forEach((v) { children!.add(new Children.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; data['title'] = this.title; data['profile'] = this.profile; if (this.children != null) { data['children'] = this.children!.map((v) => v.toJson()).toList(); } return data; } }