python-lottie  0.6.10+devbd5499b
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.base.LottieEnum Class Reference

Base class for enum-like types in the Lottie JSON structure. More...

Inheritance diagram for lottie.objects.base.LottieEnum:
[legend]
Collaboration diagram for lottie.objects.base.LottieEnum:
[legend]

Public Member Functions

def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
 
def load (cls, lottieint)
 Loads from a JSON object. More...
 
def clone (self)
 Returns a copy of the object. More...
 
- Public Member Functions inherited from lottie.objects.base.EnumMeta
def __new__ (cls, name, bases, classdict)
 

Detailed Description

Base class for enum-like types in the Lottie JSON structure.

Definition at line 42 of file base.py.

Member Function Documentation

◆ clone()

def lottie.objects.base.LottieEnum.clone (   self)

Returns a copy of the object.

Reimplemented from lottie.objects.base.LottieBase.

Definition at line 53 of file base.py.

◆ load()

def lottie.objects.base.LottieEnum.load (   cls,
  lottiedict 
)

Loads from a JSON object.

Returns
An instance of the class

Reimplemented from lottie.objects.base.LottieBase.

Definition at line 50 of file base.py.

◆ to_dict()

def lottie.objects.base.LottieEnum.to_dict (   self)

Serializes into a JSON object fit for the Lottie format.

Reimplemented from lottie.objects.base.LottieBase.

Definition at line 46 of file base.py.


The documentation for this class was generated from the following file: