GenerateUploadKeysArgs.fromJson constructor

GenerateUploadKeysArgs.fromJson(
  1. Map json
)

Implementation

factory GenerateUploadKeysArgs.fromJson(Map<dynamic, dynamic> json) =>
    GenerateUploadKeysArgs(
      pubkey: json['pubkey'],
      dbSessions: (json['dbSessions'] as Iterable)
          .map((e) => DbInboundGroupSessionBundle.fromJson(e))
          .toList(),
      userId: json['userId'],
    );