fromJson static method
Inherited by: BackgroundTypeChatTheme BackgroundTypeFill BackgroundTypePattern BackgroundTypeWallpaper
Implementation
static BackgroundTypePattern? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return BackgroundTypePattern(
fill: BackgroundFill.fromJson(tdMapFromJson(json['fill'])),
intensity: (json['intensity'] as int?) ?? 0,
isInverted: (json['is_inverted'] as bool?) ?? false,
isMoving: (json['is_moving'] as bool?) ?? false,
);
}