ScreenViewResponse.fromMap constructor
ScreenViewResponse.fromMap(
- Map map
ScreenViewResponse.fromMap(Map map) is a named constructor that takes a Map as an argument and
creates a new instance of ScreenViewResponse using the values from the Map.
Implementation
ScreenViewResponse.fromMap(Map map)
: this._(
audience: ScreenViewAudience.fromMap(map['audience']),
createdAt: SyneriseUtils.formatIntToDateTime(map['createdAt']),
identifier: map['identifier'],
hashString: map['hashString'],
name: map['name'],
path: map['path'],
priority: map['priority'],
updatedAt: SyneriseUtils.formatIntToDateTime(map['updatedAt']),
version: map['version'],
data: Map<String, Object>.from(map['data']),
parentVersion: map['parentVersion'],
descriptionText: map['descriptionText'],
deletedAt: map['deletedAt'] != null
? SyneriseUtils.formatIntToDateTime(map['deletedAt'])
: null);