Android kotlin:json自动生成bean

1.   取得json字符串

 

{
		"memo_id": 351,
		"items": [{
			"language": "en",
			"title": "pdf image test",
			"content": "pdf再アップ10/23",
			"file_id": 30,
			"file_name": "pdf画像テスト.pdf",
			"file_size": 9088
		}, {
			"language": "en",
			"title": "pdf image test",
			"content": "pdf再アップ10/23",
			"file_id": 30,
			"file_name": "pdf画像テスト.pdf",
			"file_size": 9088
		}],
		"modified_by": "ktc100000",
		"start_date": "2019-10-21T00:00:00+09:00",
		"type": 1,
		"is_editable": false,
		"open_ranges": {
			"private": {
				"selected": false
			},
			"role": {
				"selected": false,
				"roles": null
			},
			"group": {
				"selected": false,
				"groups": null
			},
			"type": ""
		}
	}, {
		"memo_id": 352,
		"items": [{
			"language": "en",
			"title": "png image test",
			"content": "",
			"file_id": 26,
			"file_name": "png画像テスト.png",
			"file_size": 17900
		}, {
			"language": "en",
			"title": "png image test",
			"content": "",
			"file_id": 26,
			"file_name": "png画像テスト.png",
			"file_size": 17900
		}],
		"modified_by": "ktc100000",
		"start_date": "2019-10-21T16:20:43.387+09:00",
		"type": 1,
		"is_editable": false,
		"open_ranges": {
			"private": {
				"selected": false
			},
			"role": {
				"selected": false,
				"roles": null
			},
			"group": {
				"selected": false,
				"groups": null
			},
			"type": ""
		}
	}

 

2. AndroidStudio按快捷键ALT+ K,粘贴:

Android kotlin:json自动生成bean_第1张图片

 3.  生成即可

 

 

你可能感兴趣的:(android,kotlin)