v1CreateApiKeysIntentV2.fromJson constructor

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

Implementation

factory v1CreateApiKeysIntentV2.fromJson(Map<String, dynamic> json) {
  final _apiKeys = (json['apiKeys'] as List).map((e) => v1ApiKeyParamsV2.fromJson(e as Map<String, dynamic>)).toList();
  final _userId = json['userId'] as String;
  return v1CreateApiKeysIntentV2(
    apiKeys: _apiKeys,
    userId: _userId,
  );
}