SpriteSheet.fromJson constructor

SpriteSheet.fromJson(
  1. Map json_
)

Implementation

SpriteSheet.fromJson(core.Map json_)
    : this(
        columnCount: json_.containsKey('columnCount')
            ? json_['columnCount'] as core.int
            : null,
        endTimeOffset: json_.containsKey('endTimeOffset')
            ? json_['endTimeOffset'] as core.String
            : null,
        filePrefix: json_.containsKey('filePrefix')
            ? json_['filePrefix'] as core.String
            : null,
        format: json_.containsKey('format')
            ? json_['format'] as core.String
            : null,
        interval: json_.containsKey('interval')
            ? json_['interval'] as core.String
            : null,
        quality: json_.containsKey('quality')
            ? json_['quality'] as core.int
            : null,
        rowCount: json_.containsKey('rowCount')
            ? json_['rowCount'] as core.int
            : null,
        spriteHeightPixels: json_.containsKey('spriteHeightPixels')
            ? json_['spriteHeightPixels'] as core.int
            : null,
        spriteWidthPixels: json_.containsKey('spriteWidthPixels')
            ? json_['spriteWidthPixels'] as core.int
            : null,
        startTimeOffset: json_.containsKey('startTimeOffset')
            ? json_['startTimeOffset'] as core.String
            : null,
        totalCount: json_.containsKey('totalCount')
            ? json_['totalCount'] as core.int
            : null,
      );