GetConnectionResponse.fromJson constructor

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

Implementation

factory GetConnectionResponse.fromJson(Map<String, dynamic> json) {
  return GetConnectionResponse(
    connectedAt: timeStampFromJson(json['connectedAt']),
    identity: json['identity'] != null
        ? Identity.fromJson(json['identity'] as Map<String, dynamic>)
        : null,
    lastActiveAt: timeStampFromJson(json['lastActiveAt']),
  );
}