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(
        ((json['animations'] as List<dynamic>?) ?? <dynamic>[])
            .map((item) => Animation.fromJson(item as Map<String, dynamic>?))
            .toList()),
  );
}