Plan constructor

Plan({
  1. String? name,
  2. @Deprecated('This field is deprecated.') Timestamp? time,
  3. Int64? height,
  4. String? info,
  5. @Deprecated('This field is deprecated.') Any? upgradedClientState,
})

Implementation

factory Plan({
  $core.String? name,
@$core.Deprecated('This field is deprecated.')
  $1.Timestamp? time,
  $fixnum.Int64? height,
  $core.String? info,
@$core.Deprecated('This field is deprecated.')
  $2.Any? upgradedClientState,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (time != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.time = time;
  }
  if (height != null) {
    _result.height = height;
  }
  if (info != null) {
    _result.info = info;
  }
  if (upgradedClientState != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.upgradedClientState = upgradedClientState;
  }
  return _result;
}