JoinInstruction.fromJson constructor

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

Implementation

factory JoinInstruction.fromJson(Map<String, dynamic> json) {
  return JoinInstruction(
    leftOperand: json['LeftOperand'] as String,
    onClause: json['OnClause'] as String,
    rightOperand: json['RightOperand'] as String,
    type: (json['Type'] as String).toJoinType(),
    leftJoinKeyProperties: json['LeftJoinKeyProperties'] != null
        ? JoinKeyProperties.fromJson(
            json['LeftJoinKeyProperties'] as Map<String, dynamic>)
        : null,
    rightJoinKeyProperties: json['RightJoinKeyProperties'] != null
        ? JoinKeyProperties.fromJson(
            json['RightJoinKeyProperties'] as Map<String, dynamic>)
        : null,
  );
}