If model have a Timestamp property, modeler produces something like this:
factory Comment.fromJson(Map<String, dynamic> json) {
return Comment(
content: (json['content']) as String,
createdAt: DateTime.parse((json['createdAt'])),
author_name: (json['author_name']) as String,
author_email: (json['author_email']) as String);
}
Will throw an error: Error: TypeError: Instance of 'Timestamp': type 'Timestamp' is not a subtype of type 'String'
If model have a Timestamp property, modeler produces something like this:
Will throw an error: Error: TypeError: Instance of 'Timestamp': type 'Timestamp' is not a subtype of type 'String'