How do I add custom property to object in bpy?
The answer is:

bpy.types.Material.gltf_double_sided = bpy.props.BoolProperty()
bpy.context.object.active_material.gltf_double_sided = True


And it works.