StickerAttachment.fromJson constructor

StickerAttachment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StickerAttachment.fromJson(Map<String, dynamic> json) {
  final payload = json['payload'] as Map<String, dynamic>;
  return StickerAttachment(
    url: payload['url'] as String,
    code: payload['code'] as String,
    width: json['width'] as int,
    height: json['height'] as int,
  );
}