PushTokenResponse.fromJson constructor

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

Implementation

factory PushTokenResponse.fromJson(Map<String, dynamic> json) =>
    PushTokenResponse(
      token: json['token'] as String,
      expiresAt: DateTime.parse(json['expiresAt'] as String),
      channels: List<String>.from(json['channels'] as List),
    );