TileModelAnimation.fromMap constructor

TileModelAnimation.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory TileModelAnimation.fromMap(Map<String, dynamic> map) {
  return new TileModelAnimation(
    stepTime: map['stepTime'],
    frames: map['frames'] != null
        ? (map['frames'] as List).map((e) {
            return TileModelSprite.fromMap(e);
          }).toList()
        : [],
  );
}