fromJson static method

Animations? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static Animations? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Animations(
    animations: List<Animation>.from(
      tdListFromJson(json['animations'])
          .map((item) => Animation.fromJson(tdMapFromJson(item)))
          .whereType<Animation>(),
    ),
  );
}