Message.fromJson constructor

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

Implementation

Message.fromJson(Map<String, dynamic> json) {
  if (json['accountKeys'] != null) {
    accountKeys = <AccountKeys>[];
    json['accountKeys'].forEach((v) {
      accountKeys!.add(AccountKeys.fromJson(v));
    });
  }
  if (json['instructions'] != null) {
    instructions = <Instructions>[];
    json['instructions'].forEach((v) {
      instructions!.add(Instructions.fromJson(v));
    });
  }
  recentBlockhash = json['recentBlockhash'];
}