LoginLink.fromJson constructor

LoginLink.fromJson(
  1. Object? json
)

Implementation

factory LoginLink.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return LoginLink(
    created:
        DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
    url: (map['url'] as String),
  );
}