fromJson static method

PushMessageContentAnimation? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static PushMessageContentAnimation? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PushMessageContentAnimation(
    animation: Animation.fromJson(tdMapFromJson(json['animation'])),
    caption: (json['caption'] as String?) ?? '',
    isPinned: (json['is_pinned'] as bool?) ?? false,
  );
}