Skip to content

Commit 878834e

Browse files
authored
Update jsontoclassgenerator.php
1 parent 8354c72 commit 878834e

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

config/jsontoclassgenerator.php

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,27 @@
1010
'array' => [
1111
# Please define an object instead of item
1212
# so each array needs to be defined with a key name, for example, 'message' is a key name
13-
'message' => [
14-
'author' => [
13+
'post' => [
14+
'author' => (object)[
1515
'first_name' => '',
1616
'last_name' => '',
1717
],
18-
'text' => '',
19-
'date' => '2019-01-01'
18+
'comment' => (object)[
19+
'user' => (object)[
20+
'first_name' => '',
21+
'last_name' => ''
22+
],
23+
'content' => ''
24+
],
25+
'followers' => (array)[
26+
'id' => '',
27+
'follower_user' => [
28+
'first_name' => '',
29+
'last_name' => ''
30+
]
31+
],
32+
'text' => '',
33+
'date' => '2019-01-01'
2034
]
2135
],
22-
# Remember to define an object with a key name
23-
'json' => "{}"
24-
];
36+
];

0 commit comments

Comments
 (0)