MagicSplashResponse.withMap constructor

MagicSplashResponse.withMap(
  1. Map<String, Object?> map
)

Implementation

factory MagicSplashResponse.withMap(Map<String, Object?> map) {
  return MagicSplashResponse(
    event: '${map['event'] ?? ''}',
    tagId: '${map['tagId'] ?? ''}',
    adObjectId: map['adObjectId'] as String?,
    adObject: magicAdObjectFromEventMap(map),
    method: map['method'] as String?,
    requestMessage: map['errorMessage'] as String?,
    rawMap: map,
    extraMap: MagicBaseResponse.extraFrom(map),
    splashStatus: _splashStatus('${map['event'] ?? ''}'),
  );
}