Payload.fromJson constructor

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

Implementation

factory Payload.fromJson(Map<String, dynamic> json) {
  return Payload(
    contentExpression: json['contentExpression'] as String,
    type: (json['type'] as String).toPayloadType(),
  );
}